
// 获取应用实例
const app = getApp()

Page({
  data: 
  {
    product_name:["华为mate30","黑鲨pro","小米10","oppo11","vivo24","洛基亚3代","金狮子","玫瑰","月季花","梅花","牡丹","郁金香","美特斯邦威T恤","森马羽绒服","短裙","连衣裙","薯片","儿童棉衣","牛肉干","吹风机","电饭煲","香蕉","水壶"],
    product_price:[3250,2650,4200,2300,1500,270,500,200,130,150,250,150,50,400,50,90,15,60,15,20,100,10,20,42],
    product_src:["/img/images/temp/cate1.jpg","/img/images/temp/cate2.jpg","/img/images/temp/cate3.jpg","/img/images/temp/cate4.jpg","/img/images/temp/cate5.jpg","/img/images/temp/cate6.jpg","/img/images/temp/cate7.jpg","/img/images/temp/cate8.jpg","/img/images/temp/cate9.jpg","/img/images/temp/cate10.jpg","/img/images/temp/cate11.jpg","/img/images/temp/cate12.jpg","/img/images/temp/cate13.jpg","/img/images/temp/cate14.jpg","/img/images/temp/cate15.jpg","/img/images/temp/cate16.jpg","/img/images/temp/cate17.jpg","/img/images/temp/cate18.jpg","/img/images/temp/cate19.jpg","/img/images/temp/cate20.jpg","/img/images/temp/cate21.jpg","/img/images/temp/cate22.jpg","/img/images/temp/cate23.jpg","/img/images/temp/cate24.jpg",],
    lun_name:["锦里","东郊记忆","春熙路","宽窄巷子"],
    lun_src:["/img/images/temp/banner1.jpg","/img/images/temp/banner2.jpg","/img/images/temp/banner3.jpg","/img/images/temp/banner4.jpg"],
    img_url:"https://img-pre.ivsky.com/img/tupian/pre/201801/26/jinli-008.jpg",
    img_name:"锦里",
    img_detail:"传说中锦里曾是西蜀历史上最古老、最具有商业气息的街道之一,早在秦汉、三国时期便闻名全国,传说中锦里曾是西蜀历史上最古老、最具有商业气息的街道之一,早在秦汉、三国时期便闻名全国传说中锦里曾是西蜀历史上最古老、最具有商业气息的街道之一,早在秦汉、三国时期便闻名全国传说中锦里曾是西蜀历史上最古老、最具有商业气息的街道之一,早在秦汉、三国时期便闻名全国",
    number:"1268",
    top_list_content:["锦里","春熙路","宽窄巷子","宽窄巷子","宽窄巷子","宽窄巷子","宽窄巷子","宽窄巷子","宽窄巷子","宽窄巷子","宽窄巷子"],
    url_top:"/pages/login/login",
    showModal: false, // 显示modal弹窗
    single: false ,// false 只显示一个按钮，如果想显示两个改为true即可
    jump_url:""
  },
  getNavList:function(e)
  {
    wx.request
    ({
     /* url: 'http://391767s18s.wicp.vip/',*/
     //url:'http://202.199.224.119:8080/eams/loginExt.action',
      success(res)
      {
        //console.log(res.data);
        //console.log("ss")
      }
    })
  },
  btn:function(e)
  {
    console.log(123)
  },
  // 事件处理函数
  bindViewTap() 
  {

  },
  clk:function(e)
  {
    var index=e.currentTarget.dataset.id
    var f_url=e.currentTarget.dataset.url
    this.setData({
      showModal:true,
      jump_url:f_url
    })
    //console.log(index)
    //console.log("------")
    //console.log(f_url)
  },
  onLoad: function (options) 
  {
    this.getNavList();
  },
  getUserProfile(e) {
    // 推荐使用wx.getUserProfile获取用户信息，开发者每次通过该接口获取用户个人信息均需用户确认，开发者妥善保管用户快速填写的头像昵称，避免重复弹窗
    wx.getUserProfile({
      desc: '展示用户信息', // 声明获取用户个人信息后的用途，后续会展示在弹窗中，请谨慎填写
      success: (res) => {
        console.log(res)
        this.setData({
          userInfo: res.userInfo,
          hasUserInfo: true
        })
      }
    })
  },
  getUserInfo(e) {
    // 不推荐使用getUserInfo获取用户信息，预计自2021年4月13日起，getUserInfo将不再弹出弹窗，并直接返回匿名的用户个人信息
    console.log(e)
    this.setData({
      userInfo: e.detail.userInfo,
      hasUserInfo: true
    })
  },
  //-----------------------------------------------------------------
  showCancelOrder: function() {
    this.setData({
      showModal:true
    })
  },
  modal_click_Hidden: function () {
    this.setData({
      showModal: false,
    })
  },
  // 确定

})
